﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/employee.master" AutoEventWireup="true"
    CodeBehind="profile_update.aspx.cs" Inherits="RailwayReservationWeb.employee.profile_update" %>

<asp:Content ID="Content2" ContentPlaceHolderID="PathContent" runat="server">
    <ol class="breadcrumb">
        <li><a href="default.aspx">Home</a></li>
        <li><a href="#">Profile</a></li>
        <li class="active"><a href="profile_update.aspx">Update</a></li>
    </ol>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="page-header">
        <h1>
            Update Profile</h1>
    </div>
    <asp:HiddenField ID="txtAccountId" runat="server" />
    <p id="pMessage" runat="server" class="alert alert-danger">
    </p>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="alert alert-danger"
        DisplayMode="List" />
    <div class="form-horizontal">
        <h3 style="margin: 25px auto">
            Account Information</h3>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label2" runat="server" Text="User Name" AssociatedControlID="txtUserName"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please input User Name"
                    ForeColor="Red" ControlToValidate="txtUserName">∗</asp:RequiredFieldValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtUserName" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label0" runat="server" Text="Email" AssociatedControlID="txtEmail"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator0" runat="server" ErrorMessage="Please input Email"
                    ForeColor="Red" ControlToValidate="txtEmail">∗</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ForeColor="White"
                    ControlToValidate="txtEmail" ErrorMessage="Please input a valid Email address"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">&lt;</asp:RegularExpressionValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtEmail" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label10" runat="server" Text="Password" CssClass="control-label" AssociatedControlID="btnChangePassword"></asp:Label>
            </div>
            <div class="col-md-9">
                <asp:Button ID="btnChangePassword" runat="server" CausesValidation="False" CssClass="btn btn-default"
                    PostBackUrl="~/employee/profile_changepwd.aspx" Text="Change Password" />
            </div>
        </div>
        <h3 style="margin: 25px auto">
            Personal Information</h3>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label4" runat="server" Text="Full Name" AssociatedControlID="txtFullName"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please input Full Name"
                    ForeColor="Red" ControlToValidate="txtFullName">∗</asp:RequiredFieldValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtFullName" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label5" runat="server" Text="Birthday" AssociatedControlID="txtDob"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please input Birthday"
                    ForeColor="Red" ControlToValidate="txtDob">∗</asp:RequiredFieldValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtDob" runat="server" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label11" runat="server" Text="Gender" CssClass="control-label" AssociatedControlID="cboGender"></asp:Label>
            </div>
            <div class="col-md-9">
                <asp:DropDownList ID="cboGender" runat="server" CssClass="form-control">
                    <asp:ListItem Value="-1">-</asp:ListItem>
                    <asp:ListItem Value="1">Male</asp:ListItem>
                    <asp:ListItem Value="0">Female</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label6" runat="server" Text="Address" CssClass="control-label" AssociatedControlID="txtAddress"></asp:Label>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtAddress" runat="server" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label7" runat="server" Text="Phone" CssClass="control-label" AssociatedControlID="txtPhone"></asp:Label>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtPhone"
                    ErrorMessage="Please input a valid Phone number" ForeColor="White" ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}">&lt;</asp:RegularExpressionValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtPhone" runat="server" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label8" runat="server" Text="SSN" CssClass="control-label" AssociatedControlID="txtSSN"></asp:Label>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="Please input a valid SSN number"
                    ForeColor="White" ControlToValidate="txtSSN">&lt;</asp:RegularExpressionValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtSSN" runat="server" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div style="margin: 5px auto">
            &nbsp;
        </div>
        <div class="form-group">
            <div class="col-md-offset-3 col-md-9">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btn btn-primary"
                    OnClick="btnSubmit_Click" />
                &nbsp;<asp:Button ID="Button1" runat="server" Text="Cancel" CausesValidation="False"
                    PostBackUrl="~/employee/profile_update.aspx" CssClass="btn btn-default" UseSubmitBehavior="False" />
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SideContent" runat="server">
    <div class="panel panel-primary panel-navi">
        <!-- Default panel contents -->
        <div class="panel-heading">
            Personal Information</div>
        <!-- List group -->
        <ul class="list-group">
            <li class="list-group-item"><a href="profile_update.aspx">Update Profile</a></li>
            <li class="list-group-item"><a href="profile_changepwd.aspx">Change Password</a></li>
        </ul>
    </div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="EndContent" runat="server">
    <script src="../js/bootstrap-datepicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#MainContent_txtDob').datepicker();
        });
    </script>
</asp:Content>
